package org.jeecg.modules.reportLabel.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.inOrder1.entity.Bar;
import org.jeecg.modules.reportLabel.entity.ReportLabel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 标签统计报表
 * @Author: jeecg-boot
 * @Date:   2023-12-01
 * @Version: V1.0
 */
public interface ReportLabelMapper extends BaseMapper<ReportLabel> {

    @Select("SELECT sku_code1 x, IFNULL(COUNT(sku_code1),0) y FROM `report_label` WHERE status=5 GROUP BY sku_code1")
    List<Bar> getBar();
}
